//
//  WRFViewController.m
//  HeadYang
//
//  Created by sunmingming on 15/8/2.
//  Copyright (c) 2015年 xiaoluoli. All rights reserved.
//

#import "WRFViewController.h"

@interface WRFViewController ()

@property(nonatomic,weak) IBOutlet UILabel *titleLb;
@property(nonatomic,weak) IBOutlet UITextView *dTV;

@end

@implementation WRFViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.navigationItem.leftBarButtonItem =
        [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"arrow_white"]
                                         style:UIBarButtonItemStyleDone
                                        target:self
                                        action:@selector(backPressed:)];
    }
    return self;
}

-(void)viewDidLoad{
    [super viewDidLoad];
    if (self.isRT) {
        self.title = @"什么是热烫";
        self.titleLb.text = @"什么是热烫";
        self.dTV.text = @"总之就是一顿热烫";
    }else{
        self.title = @"什么是冷烫";
        self.titleLb.text = @"什么是冷烫";
        self.dTV.text = @"总之就是一顿冷烫";
    }
}

-(void)backPressed:(id)sender
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
